package com.wangxq.yd_login.login;


import com.zlx.module_base.sys_info.BaseResponsBean;
import com.zlx.module_base.sys_info.login.LoginReponsBody;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Url;

public interface LoginApi {

    @FormUrlEncoded
//    @POST("DTCG/app/appLogin.action")
    @POST
    Observable<BaseResponsBean<LoginReponsBody>> Login(@Url String url, @Field("userId") String userId,
                                                       @Field("passWord") String passWord);

    /**
     * 修改密码
     * @param password
     * @param passWord1
     * @param passWord2
     * @return
     */
    @FormUrlEncoded
    @POST("DTCGCW/acrole/acOperator/savePassWord.action")
    Observable<String> ResetPassWord(@Field("password") String password,
                                     @Field("password1") String passWord1,
                                     @Field("password2") String passWord2);

}
